package com.cskaoyan.shopping;

import com.cskaoyan.mall.dto.ProductDetailDto;
import com.cskaoyan.shopping.form.PageRequest;
import com.cskaoyan.shopping.service.IProductService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Description:
 * @Author: Pinocao
 * @CreateTime: 2022-12-03  10:10
 * @Version: 1.0
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class ShoppingTestC {
    @Autowired
    IProductService iProductService;

    @Test
    public void getProductDetail(){
        ProductDetailDto productDetail = iProductService.getProductDetail(100023501L);
        System.out.println(productDetail);
    }

    @Test
    public void getAllProduct(){

    }
}